const mongoose = require("../db/index");

const CommentSchema = mongoose.Schema(
  {
    content: {
      type: String,
      required: true,
    },
    username: {
      type: String,
      required: true,
    },
  },
  {
    timestapms: true,
  }
);

const CommentModel = mongoose.model("comment", CommentSchema);

module.exports = CommentModel;
